package com.csii.modules.online.auth.vo;

import com.csii.modules.online.cgform.entity.OnlCgformField;

import java.io.Serializable;

/**
 * 列属性
 */
public class AuthColumnVO implements Serializable {
   private static final long a = 5445993027926933917L;
   private String id;
   private String cgformId;
   private Integer type = 1;
   private String code;
   private String title;
   private Integer status;
   private boolean listShow;
   private boolean formShow;
   private boolean formEditable;
   private Integer isShowForm;
   private Integer isShowList;
   private int switchFlag;

   public AuthColumnVO() {
   }

   public AuthColumnVO(OnlCgformField field) {
      this.cgformId = field.getCgformHeadId();
      this.code = field.getDbFieldName();
      this.title = field.getDbFieldTxt();
      this.type = 1;
      this.isShowForm = field.getIsShowForm();
      this.isShowList = field.getIsShowList();
   }

   public String getId() {
      return this.id;
   }

   public String getCgformId() {
      return this.cgformId;
   }

   public Integer getType() {
      return this.type;
   }

   public String getCode() {
      return this.code;
   }

   public String getTitle() {
      return this.title;
   }

   public Integer getStatus() {
      return this.status;
   }

   public boolean a() {
      return this.listShow;
   }

   public boolean b() {
      return this.formShow;
   }

   public boolean c() {
      return this.formEditable;
   }

   public Integer getIsShowForm() {
      return this.isShowForm;
   }

   public Integer getIsShowList() {
      return this.isShowList;
   }

   public int getSwitchFlag() {
      return this.switchFlag;
   }

   public void setId(String id) {
      this.id = id;
   }

   public void setCgformId(String cgformId) {
      this.cgformId = cgformId;
   }

   public void setType(Integer type) {
      this.type = type;
   }

   public void setCode(String code) {
      this.code = code;
   }

   public void setTitle(String title) {
      this.title = title;
   }

   public void setStatus(Integer status) {
      this.status = status;
   }

   public void setListShow(boolean listShow) {
      this.listShow = listShow;
   }

   public void setFormShow(boolean formShow) {
      this.formShow = formShow;
   }

   public void setFormEditable(boolean formEditable) {
      this.formEditable = formEditable;
   }

   public void setIsShowForm(Integer isShowForm) {
      this.isShowForm = isShowForm;
   }

   public void setIsShowList(Integer isShowList) {
      this.isShowList = isShowList;
   }

   public void setSwitchFlag(int switchFlag) {
      this.switchFlag = switchFlag;
   }

   public boolean equals(Object o) {
      if (o == this) {
         return true;
      } else if (!(o instanceof AuthColumnVO)) {
         return false;
      } else {
         AuthColumnVO var2 = (AuthColumnVO)o;
         if (!var2.a(this)) {
            return false;
         } else {
            label123: {
               String var3 = this.getId();
               String var4 = var2.getId();
               if (var3 == null) {
                  if (var4 == null) {
                     break label123;
                  }
               } else if (var3.equals(var4)) {
                  break label123;
               }

               return false;
            }

            String var5 = this.getCgformId();
            String var6 = var2.getCgformId();
            if (var5 == null) {
               if (var6 != null) {
                  return false;
               }
            } else if (!var5.equals(var6)) {
               return false;
            }

            Integer var7 = this.getType();
            Integer var8 = var2.getType();
            if (var7 == null) {
               if (var8 != null) {
                  return false;
               }
            } else if (!var7.equals(var8)) {
               return false;
            }

            label102: {
               String var9 = this.getCode();
               String var10 = var2.getCode();
               if (var9 == null) {
                  if (var10 == null) {
                     break label102;
                  }
               } else if (var9.equals(var10)) {
                  break label102;
               }

               return false;
            }

            label95: {
               String var11 = this.getTitle();
               String var12 = var2.getTitle();
               if (var11 == null) {
                  if (var12 == null) {
                     break label95;
                  }
               } else if (var11.equals(var12)) {
                  break label95;
               }

               return false;
            }

            label88: {
               Integer var13 = this.getStatus();
               Integer var14 = var2.getStatus();
               if (var13 == null) {
                  if (var14 == null) {
                     break label88;
                  }
               } else if (var13.equals(var14)) {
                  break label88;
               }

               return false;
            }

            if (this.a() != var2.a()) {
               return false;
            } else if (this.b() != var2.b()) {
               return false;
            } else if (this.c() != var2.c()) {
               return false;
            } else {
               label77: {
                  Integer var15 = this.getIsShowForm();
                  Integer var16 = var2.getIsShowForm();
                  if (var15 == null) {
                     if (var16 == null) {
                        break label77;
                     }
                  } else if (var15.equals(var16)) {
                     break label77;
                  }

                  return false;
               }

               Integer var17 = this.getIsShowList();
               Integer var18 = var2.getIsShowList();
               if (var17 == null) {
                  if (var18 != null) {
                     return false;
                  }
               } else if (!var17.equals(var18)) {
                  return false;
               }

               if (this.getSwitchFlag() != var2.getSwitchFlag()) {
                  return false;
               } else {
                  return true;
               }
            }
         }
      }
   }

   protected boolean a(Object var1) {
      return var1 instanceof AuthColumnVO;
   }

   public int hashCode() {
      boolean var1 = true;
      byte var2 = 1;
      String var3 = this.getId();
      int var11 = var2 * 59 + (var3 == null ? 43 : var3.hashCode());
      String var4 = this.getCgformId();
      var11 = var11 * 59 + (var4 == null ? 43 : var4.hashCode());
      Integer var5 = this.getType();
      var11 = var11 * 59 + (var5 == null ? 43 : var5.hashCode());
      String var6 = this.getCode();
      var11 = var11 * 59 + (var6 == null ? 43 : var6.hashCode());
      String var7 = this.getTitle();
      var11 = var11 * 59 + (var7 == null ? 43 : var7.hashCode());
      Integer var8 = this.getStatus();
      var11 = var11 * 59 + (var8 == null ? 43 : var8.hashCode());
      var11 = var11 * 59 + (this.a() ? 79 : 97);
      var11 = var11 * 59 + (this.b() ? 79 : 97);
      var11 = var11 * 59 + (this.c() ? 79 : 97);
      Integer var9 = this.getIsShowForm();
      var11 = var11 * 59 + (var9 == null ? 43 : var9.hashCode());
      Integer var10 = this.getIsShowList();
      var11 = var11 * 59 + (var10 == null ? 43 : var10.hashCode());
      var11 = var11 * 59 + this.getSwitchFlag();
      return var11;
   }

   public String toString() {
      return "AuthColumnVO(id=" + this.getId() + ", cgformId=" + this.getCgformId() + ", type=" + this.getType() + ", code=" + this.getCode() + ", title=" + this.getTitle() + ", status=" + this.getStatus() + ", listShow=" + this.a() + ", formShow=" + this.b() + ", formEditable=" + this.c() + ", isShowForm=" + this.getIsShowForm() + ", isShowList=" + this.getIsShowList() + ", switchFlag=" + this.getSwitchFlag() + ")";
   }
}
